<style>
    #hazardDetail-edit .layui-input-block {
        margin-left: 134px;
    }

    #hazardDetail-edit .layui-form-label {
        width: 100px;
    }
</style>
<div class="layui-fluid" id="hazardDetail-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="hazardDetail-edit-form">
            <div class="layui-card">
                <blockquote class="layui-elem-quote layui-elem-quote-primary">基本信息</blockquote>
                <div class="layui-field-box">
                    <div class="layui-form-item febs-hide">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label febs-form-item-require">隐患信息id：</label>
                                <div class="layui-input-block ">
                                    <input type="text" name="reportId" class="layui-input"
                                           th:value="${hazardReport.reportId}">
                                </div>
                            </div>
                            <div class="layui-col-xs6">
                                <label class="layui-form-label febs-form-item-require">公司Id：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="tenantId" autocomplete="off" class="layui-input"
                                           maxlength="32" th:value="${hazardReport.tenantId}">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md12">
                            <label class="layui-form-label layui-form-label-detail">隐患单号：</label>
                            <div class="layui-input-block layui-input-block-html"
                                 th:text="${hazardReport.reportNo}"></div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">公司名称：</label>
                            <div class="layui-input-block layui-input-block-html"
                                 th:text="${hazardReport.tenantName}"></div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">项目名称：</label>
                            <div class="layui-input-block layui-input-block-html"
                                 th:text="${hazardReport.projectName}"></div>
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">位置区域：</label>
                            <div class="layui-input-block layui-input-block-html"
                                 th:text="${hazardReport.areaName}"></div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">隐患类型：</label>
                            <div class="layui-input-block layui-input-block-html"
                                 th:text="${hazardReport.hazardOperation}"></div>
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md12">
                            <label class="layui-form-label layui-form-label-detail">隐患图片：</label>
                            <div class="layui-input-block">
                                <div id="fileUpload1" style="height: 120px ;width: 100%">
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md12">
                            <label class="layui-form-label layui-form-label-detail">隐患描述：</label>
                            <div class="layui-input-block layui-input-block-html"
                                 th:text="${hazardReport.hazardDescription}"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div th:if="${hazardReport.status > '2'}">
                <div class="layui-card">
                    <blockquote class="layui-elem-quote layui-elem-quote-primary">整改计划</blockquote>
                    <div class="layui-field-box">
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">责任人：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.leaderName}"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">所属部门：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.leaderDeptName}"></div>

                            </div>

                        </div>

                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">员工工号：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.leaderNo}"></div>

                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">不安全行为：</label>
                                <div class="layui-input-block layui-input-block-html" id="unsafeName"
                                     th:text="${hazardReport.unsafeName}"></div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-col-md12">
                                <label class="layui-form-label layui-form-label-detail">整改措施：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.rectificationMeasures}"></div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">制定人：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.planFormulateName}"></div>

                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">制定时间：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.planDate}"></div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">截止时间：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.rectificationDate}"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div th:if="${hazardReport.status > '4'}">
                <div class="layui-card">
                    <blockquote class="layui-elem-quote layui-elem-quote-primary">整改反馈</blockquote>
                    <div class="layui-field-box">

                        <div class="layui-form-item">
                            <div class="layui-col-md12">
                                <label class="layui-form-label layui-form-label-detail">整改图片：</label>
                                <div class="layui-input-block">
                                    <div id="fileUpload2" style="height: 120px ;width: 100%">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-col-md12">
                                <label class="layui-form-label layui-form-label-detail">整改反馈：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.feedbackContent}"></div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">反馈人：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.leaderName}"></div>

                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">反馈时间：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.feedbackDate}"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div th:if="${hazardReport.status > '5'}">
                <div class="layui-card">
                    <blockquote class="layui-elem-quote layui-elem-quote-primary">整改审核</blockquote>
                    <div class="layui-field-box">

                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">奖励积分：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.bonusPoints}"></div>
                            </div>
                            <div class="layui-col-md6">


                                <label class="layui-form-label layui-form-label-detail">Nearmiss：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.nearmissFlg eq '1'} ? '是':'否'"></div>

                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md12">
                                <label class="layui-form-label layui-form-label-detail">审核备注：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.auditRemark}"></div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">审核人：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.auditRealName}"></div>

                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">审核时间：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.auditDate}"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div th:if="${hazardReport.status eq '7'}">
                <div class="layui-card">
                    <blockquote class="layui-elem-quote layui-elem-quote-primary">整改签发</blockquote>
                    <div class="layui-field-box">

                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">转发警示教育：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.cautionaryFlg eq '1'}?'是':'否'"></div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">签发人：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.issuanceRealName}"></div>

                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">签发时间：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${hazardReport.issuanceDate}"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<div style="height: 45%" class="febs-container" id="baseCautionaryLesson-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="baseCautionaryLesson-edit-form" style="padding-top: 30px">
            <div class="layui-card">
                <blockquote class="layui-elem-quote layui-elem-quote-primary">学习情况</blockquote>
                <div class="layui-form-item febs-hide">
                    <label class="layui-form-label febs-form-item-require">：</label>
                    <div class="layui-input-block">
                        <input type="text" name="cautionaryLessonId" class="layui-input">
                        <input type="text" name="tenantId" autocomplete="off" class="layui-input"
                               maxlength="32" >
                        <input type="text" name="cautionarySourceId" autocomplete="off" class="layui-input"
                               maxlength="32" >
                        <input type="text" name="cautionaryDeptId" autocomplete="off" class="layui-input"
                               maxlength="32" >
                    </div>
                </div>
                <div class="layui-form-item febs-hide">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label">学习时间：</label>
                            <div class="layui-input-block">
                                <input type="text" name="studyDate" id="studyDate" lay-verify="datetime"
                                       placeholder="请输入时间" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label febs-form-item-require">学习备注：</label>
                            <div class="layui-input-block">
                                <textarea name="studyRemark" class="layui-textarea" maxlength="900" placeholder="请输入备注" lay-verify="required"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item febs-hide">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label febs-form-item-require">警示状态：</label>
                            <div class="layui-input-block">
                                <select name="status" id="status" lay-search="">
                                    <option value="0">待学习</option>
                                    <option value="1">已学习</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label">附件上传：</label>
                            <div class="layui-input-block" id="uploadBtn">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item febs-hide">
                    <button class="layui-btn" lay-submit="" lay-filter="baseCautionaryLesson-edit-form-submit" id="submit"></button>
                    <button type="reset" class="layui-btn" id="reset"></button>
                </div>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var hazardReport = [[${hazardReport}]];
    var currentTenantId = [[${currentTenantId}]];
    var baseCautionaryLessonData = [[${baseCautionaryLesson}]];
</script>
<script th:src="@{/febs/js/base/baseCautionaryLesson/hazardDetailForLesson.js(v=1)}"></script>

